package command;

import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import pojo.OnlineSocket;
import pojo.Protocol;

public abstract class BaseReceiver {
	
	public static final int USER_OFFLINE = 0;
	
	protected Map<String, OnlineSocket> connectedUsers;
	protected Protocol protocol;

	public BaseReceiver(Map<String, OnlineSocket> connectedUsers, Protocol protocol) {
		super();
		this.connectedUsers = connectedUsers;
		this.protocol = protocol;
	}

	public abstract Entry<Integer, List<Object>> action() throws IOException;
}
